package com.amazon.shop.service;

import com.amazon.shop.bean.dto.BatchExportForm;
import com.amazon.shop.bean.dto.EvaluateDTO;
import com.amazon.shop.bean.entity.Evalform;
import com.amazon.shop.bean.vo.Ret;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lzj
 * @since 2021-01-25
 */
public interface IEvalformService extends IService<Evalform> {

    /**
     * 设置是否开启ip过滤
     * @param ipFlag
     * @return
     */
    Ret chengeIpFlag(Integer ipFlag);

    /**
     * 查询否开启ip过滤
     * @return
     */
    Ret getChengeIpFlag();


    /**
     * 提交评价
     * @param evaluated
     * @return
     */
    Ret subEvaluate(EvaluateDTO evaluated);

    /**
     * 导出评价
     * @param response
     * @param batchExportForm
     */
    void batchExport(HttpServletResponse response, BatchExportForm batchExportForm);
}
